// cover some element-ui styles

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.el-form--inline {
  padding-top: 23px;
  background: #fff;
  padding: 28px 15px 0;
}

.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

.cell {
  .el-tag {
    margin-right: 0px;
  }
}

.small-padding {
  .cell {
    padding-left: 5px;
    padding-right: 5px;
  }
}

.fixed-width {
  .el-button--mini {
    padding: 7px 10px;
    min-width: 60px;
  }
}

.status-col {
  .cell {
    padding: 0 10px;
    text-align: center;

    .el-tag {
      margin-right: 0px;
    }
  }
}

// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
}

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block;
  }
}

// fix date-picker ui bug in filter-item
.el-range-editor.el-input__inner {
  display: inline-flex !important;
}

// to fix el-date-picker css style
.el-range-separator {
  box-sizing: content-box;
}

// table样式
.el-table {
  .el-table__header-wrapper {
    table {
      tr {
        th {
          background: #e2eafd;
          color: #717685;
          font-weight: normal;
          border-color: #dee2ed;
          .cell {
            line-height: normal;
          }
        }
      }
    }
  }
  td {
    div {
      color: #717685;
    }
  }
  // table下操作按钮样式 竖排展示按钮
  .el-button {
    display: block;
    margin: 0 auto;
  }
  .el-button + .el-button {
    margin-top: 5px;
  }
}

// 调整表格上下边距
.el-table {
  th {
    padding: 12px 0;
    text-align: center;
  }
  td {
    text-align: center;
    padding: 8px 0;
  }
}
// 调整表格边框颜色
.el-table--border {
  th {
    border-color: #dee2ed;
  }
  td {
    border-color: #dee2ed;
  }
}
// 调整表格斑马颜色
.el-table--striped {
  .el-table__body {
    tr.el-table__row--striped {
      td {
        background: #f5f8fe;
      }
    }
  }
}

// dialog 样式
.el-dialog--center {
  .el-dialog__body {
    padding: 0 25px 0;
  }
}

//弹窗底部居中
.el-dialog__footer{
  text-align: center;
}

/* 用户头像上传 */
.avatar-uploader {
  .el-upload {
    border: 1px dashed #d9d9d9;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
  }
  .el-upload:hover {
    border-color: #409eff;
  }
  .avatar-uploader-icon {
    font-size: 28px;
    color: #8c939d;
    width: 178px;
    height: 178px;
    line-height: 178px;
    text-align: center;
  }
  .avatar {
    width: 146px;
    height: 146px;
    display: block;
  }
}
